<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/qt3support/dialogs/q3tabdialog.cpp -->
<head>
  <title>Qt 4.3: Q3TabDialog Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Q3TabDialog Class Reference<br /><sup><sup>[<a href="qt3support.html">Qt3Support</a> module]</sup></sup></h1>
<p>The Q3TabDialog class provides a stack of tabbed widgets. <a href="#details">More...</a></p>
<pre> #include &lt;Q3TabDialog&gt;</pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qtabdialog">Porting to Qt 4</a> for more information.</p>
<p>Inherits <a href="qdialog.html">QDialog</a>.</p>
<ul>
<li><a href="q3tabdialog-members.html">List of all members, including inherited members</a></li>
<li><a href="q3tabdialog-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="q3tabdialog.html#Q3TabDialog">Q3TabDialog</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, bool <i>modal</i> = false, Qt::WindowFlags <i>f</i> = 0 )</li>
<li><div class="fn"/><b><a href="q3tabdialog.html#dtor.Q3TabDialog">~Q3TabDialog</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#addTab">addTab</a></b> ( QWidget * <i>child</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#addTab-2">addTab</a></b> ( QWidget * <i>child</i>, const QIcon &amp; <i>iconset</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#changeTab">changeTab</a></b> ( QWidget * <i>w</i>, const QIcon &amp; <i>iconset</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#changeTab-2">changeTab</a></b> ( QWidget * <i>w</i>, const QString &amp; <i>label</i> )</li>
<li><div class="fn"/>QWidget * <b><a href="q3tabdialog.html#currentPage">currentPage</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="q3tabdialog.html#hasHelpButton">hasHelpButton</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="q3tabdialog.html#hasOkButton">hasOkButton</a></b> () const</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#insertTab">insertTab</a></b> ( QWidget * <i>child</i>, const QString &amp; <i>label</i>, int <i>index</i> = -1 )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#insertTab-2">insertTab</a></b> ( QWidget * <i>child</i>, const QIcon &amp; <i>iconset</i>, const QString &amp; <i>label</i>, int <i>index</i> = -1 )</li>
<li><div class="fn"/>bool <b><a href="q3tabdialog.html#isTabEnabled">isTabEnabled</a></b> ( QWidget * <i>w</i> ) const</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#removePage">removePage</a></b> ( QWidget * <i>w</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setApplyButton">setApplyButton</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setApplyButton-2">setApplyButton</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setCancelButton">setCancelButton</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setCancelButton-2">setCancelButton</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setDefaultButton-2">setDefaultButton</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setFont">setFont</a></b> ( const QFont &amp; <i>font</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setHelpButton">setHelpButton</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setHelpButton-2">setHelpButton</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setOkButton">setOkButton</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setOkButton-2">setOkButton</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a></b> ( QWidget * <i>w</i>, bool <i>enable</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#showPage">showPage</a></b> ( QWidget * <i>w</i> )</li>
<li><div class="fn"/>QString <b><a href="q3tabdialog.html#tabLabel">tabLabel</a></b> ( QWidget * <i>w</i> )</li>
</ul>
<ul>
<li><div class="fn"/>5 public functions inherited from <a href="qdialog.html#public-functions">QDialog</a></li>
<li><div class="fn"/>201 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"/>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div class="fn"/>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="signals"></a>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#aboutToShow">aboutToShow</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#currentChanged">currentChanged</a></b> ( QWidget * <i>widget</i> )</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a></b> ()</li>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#selected">selected</a></b> ( const QString &amp; <i>name</i> )</li>
</ul>
<ul>
<li><div class="fn"/>3 signals inherited from <a href="qdialog.html#signals">QDialog</a></li>
<li><div class="fn"/>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li><div class="fn"/>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h3>Protected Functions</h3>
<ul>
<li><div class="fn"/>void <b><a href="q3tabdialog.html#setTabBar">setTabBar</a></b> ( QTabBar * <i>tb</i> )</li>
<li><div class="fn"/>QTabBar * <b><a href="q3tabdialog.html#tabBar">tabBar</a></b> () const</li>
</ul>
<ul>
<li><div class="fn"/>38 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"/>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"/>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"/>2 properties inherited from <a href="qdialog.html#properties">QDialog</a></li>
<li><div class="fn"/>56 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li><div class="fn"/>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li><div class="fn"/>4 public slots inherited from <a href="qdialog.html#public-slots">QDialog</a></li>
<li><div class="fn"/>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li><div class="fn"/>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li><div class="fn"/>4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"/>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"/>1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The Q3TabDialog class provides a stack of tabbed widgets.</p>
<p>A tabbed dialog is one in which several &quot;tab pages&quot; are available. By clicking on a tab page's tab or by pressing the indicated Alt+<i>letter</i> key combination, the user can select which tab page they want to use.</p>
<p>Q3TabDialog provides a tab bar consisting of single row of tabs at the top; each tab has an associated widget which is that tab's tab page. In addition, Q3TabDialog provides an OK button and the following optional buttons: Apply, Cancel, Defaults and Help.</p>
<p>The normal way to use Q3TabDialog is to do the following in the constructor:</p>
<ol type="1">
<li>Create a Q3TabDialog.</li>
<li>Create a <a href="qwidget.html">QWidget</a> for each of the pages in the tab dialog, insert children into it, set up geometry management for it, and use <a href="q3tabdialog.html#addTab">addTab</a>() (or <a href="q3tabdialog.html#insertTab">insertTab</a>()) to set up a tab and keyboard accelerator for it.</li>
<li>Set up the buttons for the tab dialog using <a href="q3tabdialog.html#setOkButton">setOkButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), setDefaultsButton(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>() and <a href="q3tabdialog.html#setHelpButton">setHelpButton</a>().</li>
<li>Connect to the signals and slots.</li>
</ol>
<p>If you don't call <a href="q3tabdialog.html#addTab">addTab</a>() the page you have created will not be visible. Don't confuse the object name you supply to the <a href="qwidget.html">QWidget</a> constructor and the tab label you supply to <a href="q3tabdialog.html#addTab">addTab</a>(); <a href="q3tabdialog.html#addTab">addTab</a>() takes user-visible name that appears on the widget's tab and may identify an accelerator, whereas the widget name is used primarily for debugging.</p>
<p>Almost all applications have to connect the <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() signal to something. <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() is emitted when either OK or Apply is clicked, and your slot must copy the dialog's state into the application.</p>
<p>There are also several other signals which may be useful:</p>
<ul>
<li><a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>() is emitted when the user clicks Cancel.</li>
<li><a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>() is emitted when the user clicks Defaults; the slot it is connected to should reset the state of the dialog to the application defaults.</li>
<li><a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>() is emitted when the user clicks Help.</li>
<li><a href="q3tabdialog.html#aboutToShow">aboutToShow</a>() is emitted at the start of show(); if there is any chance that the state of the application may change between the creation of the tab dialog and the time show() is called, you must connect this signal to a slot that resets the state of the dialog.</li>
<li><a href="q3tabdialog.html#currentChanged">currentChanged</a>() is emitted when the user selects a page.</li>
</ul>
<p>Each tab is either enabled or disabled at any given time (see <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>()). If a tab is enabled the tab text is drawn in black and the user can select that tab. If it is disabled the tab is drawn in a different way and the user cannot select that tab. Note that even if a tab is disabled, the page can still be visible; for example, if all of the tabs happen to be disabled.</p>
<p>You can change a tab's label and iconset using <a href="q3tabdialog.html#changeTab">changeTab</a>(). A tab page can be removed with <a href="q3tabdialog.html#removePage">removePage</a>() and shown with <a href="q3tabdialog.html#showPage">showPage</a>(). The current page is given by <a href="q3tabdialog.html#currentPage">currentPage</a>().</p>
<p>Q3TabDialog does not support tabs on the sides or bottom, nor can you set or retrieve the visible page. If you need more functionality than Q3TabDialog provides, consider creating a <a href="qdialog.html">QDialog</a> and using a <a href="qtabbar.html">QTabBar</a> with QTabWidgets.</p>
<p>Most of the functionality in Q3TabDialog is provided by a <a href="qtabwidget.html">QTabWidget</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="Q3TabDialog"></a>Q3TabDialog::Q3TabDialog ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0, const char * <i>name</i> = 0, bool <i>modal</i> = false, <a href="qt.html#WindowType-enum">Qt::WindowFlags</a> <i>f</i> = 0 )</h3>
<p>Constructs a <a href="q3tabdialog.html">Q3TabDialog</a> with only an OK button. The <i>parent</i>, <i>name</i>, <i>modal</i> and widget flag, <i>f</i>, arguments are passed on to the <a href="qdialog.html">QDialog</a> constructor.</p>
<h3 class="fn"><a name="dtor.Q3TabDialog"></a>Q3TabDialog::~Q3TabDialog ()</h3>
<p>Destroys the tab dialog.</p>
<h3 class="fn"><a name="aboutToShow"></a>void Q3TabDialog::aboutToShow ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted by show() when it is time to set the state of the dialog's contents. The dialog should reflect the current state of the application when it appears; if there is any possibility that the state of the application may change between the time you call <a href="q3tabdialog.html#Q3TabDialog">Q3TabDialog</a>() and show(), you should set the dialog's state in a slot and connect this signal to it.</p>
<p>This applies mainly to <a href="q3tabdialog.html">Q3TabDialog</a> objects that are kept around hidden, rather than being created, shown, and deleted afterwards.</p>
<p>See also <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="qwidget.html#show">QWidget::show</a>(), and <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>().</p>
<h3 class="fn"><a name="addTab"></a>void Q3TabDialog::addTab ( <a href="qwidget.html">QWidget</a> * <i>child</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>Adds another tab and page to the tab view.</p>
<p>The new page is <i>child</i>; the tab's label is <i>label</i>. Note the difference between the widget name (which you supply to widget constructors and to <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>(), for example) and the tab label. The name is internal to the program and invariant, whereas the label is shown on-screen and may vary according to language and other factors.</p>
<p>If the tab's <i>label</i> contains an ampersand, the letter following the ampersand is used as an accelerator for the tab, e.g&#x2e; if the label is &quot;Bro&amp;wse&quot; then Alt+W becomes an accelerator which will move the focus to this tab.</p>
<p>If you call addTab() after show() the screen will flicker and the user may be confused.</p>
<p>See also <a href="q3tabdialog.html#insertTab">insertTab</a>().</p>
<h3 class="fn"><a name="addTab-2"></a>void Q3TabDialog::addTab ( <a href="qwidget.html">QWidget</a> * <i>child</i>, const <a href="qicon.html">QIcon</a> &amp; <i>iconset</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>This version of the function shows the <i>iconset</i> as well as the <i>label</i> on the tab of <i>child</i>.</p>
<h3 class="fn"><a name="applyButtonPressed"></a>void Q3TabDialog::applyButtonPressed ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when either the Apply or OK button is clicked.</p>
<p>It should be connected to a slot (or several slots) that change the application's state according to the state of the dialog.</p>
<p>See also <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>().</p>
<h3 class="fn"><a name="cancelButtonPressed"></a>void Q3TabDialog::cancelButtonPressed ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the Cancel button is clicked. It is automatically connected to <a href="qdialog.html#reject">QDialog::reject</a>(), which will hide the dialog.</p>
<p>The Cancel button should not change the application's state at all, so you should generally not need to connect it to any slot.</p>
<p>See also <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>().</p>
<h3 class="fn"><a name="changeTab"></a>void Q3TabDialog::changeTab ( <a href="qwidget.html">QWidget</a> * <i>w</i>, const <a href="qicon.html">QIcon</a> &amp; <i>iconset</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>Changes tab page <i>w</i>'s iconset to <i>iconset</i> and label to <i>label</i>.</p>
<h3 class="fn"><a name="changeTab-2"></a>void Q3TabDialog::changeTab ( <a href="qwidget.html">QWidget</a> * <i>w</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Defines a new <i>label</i> for the tab of page <i>w</i></p>
<h3 class="fn"><a name="currentChanged"></a>void Q3TabDialog::currentChanged ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the current page changes. <i>widget</i> is the new current page.</p>
<p>See also <a href="q3tabdialog.html#currentPage">currentPage</a>(), <a href="q3tabdialog.html#showPage">showPage</a>(), and <a href="q3tabdialog.html#tabLabel">tabLabel</a>().</p>
<h3 class="fn"><a name="currentPage"></a><a href="qwidget.html">QWidget</a> * Q3TabDialog::currentPage () const</h3>
<p>Returns a pointer to the page currently being displayed by the tab dialog. The tab dialog does its best to make sure that this value is never 0 (but if you try hard enough, it can be).</p>
<h3 class="fn"><a name="defaultButtonPressed"></a>void Q3TabDialog::defaultButtonPressed ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the Defaults button is pressed. It should reset the dialog (but not the application) to the &quot;factory defaults&quot;.</p>
<p>The application's state should not be changed until the user clicks Apply or OK.</p>
<p>See also <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>().</p>
<h3 class="fn"><a name="hasApplyButton"></a>bool Q3TabDialog::hasApplyButton () const</h3>
<p>Returns true if the tab dialog has an Apply button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>()</p>
<p>See also <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), and <a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>().</p>
<h3 class="fn"><a name="hasCancelButton"></a>bool Q3TabDialog::hasCancelButton () const</h3>
<p>Returns true if the tab dialog has a Cancel button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>()</p>
<p>See also <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>().</p>
<h3 class="fn"><a name="hasDefaultButton"></a>bool Q3TabDialog::hasDefaultButton () const</h3>
<p>Returns true if the tab dialog has a Defaults button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>()</p>
<p>See also <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>(), and <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>().</p>
<h3 class="fn"><a name="hasHelpButton"></a>bool Q3TabDialog::hasHelpButton () const</h3>
<p>Returns true if the tab dialog has a Help button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>()</p>
<p>See also <a href="q3tabdialog.html#setHelpButton">setHelpButton</a>(), <a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>(), and <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>().</p>
<h3 class="fn"><a name="hasOkButton"></a>bool Q3TabDialog::hasOkButton () const</h3>
<p>Returns true if the tab dialog has an OK button; otherwise returns false.</p>
<p><a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>()</p>
<p>See also <a href="q3tabdialog.html#setOkButton">setOkButton</a>(), <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>(), and <a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>().</p>
<h3 class="fn"><a name="helpButtonPressed"></a>void Q3TabDialog::helpButtonPressed ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted when the Help button is pressed. It could be used to present information about how to use the dialog.</p>
<p>See also <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>(), <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>(), and <a href="q3tabdialog.html#setHelpButton">setHelpButton</a>().</p>
<h3 class="fn"><a name="insertTab"></a>void Q3TabDialog::insertTab ( <a href="qwidget.html">QWidget</a> * <i>child</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i>, int <i>index</i> = -1 )</h3>
<p>Inserts another tab and page to the tab view.</p>
<p>The new page is <i>child</i>; the tab's label is <i>label</i>. Note the difference between the widget name (which you supply to widget constructors and to <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>(), for example) and the tab label. The name is internal to the program and invariant, whereas the label is shown on-screen and may vary according to language and other factors.</p>
<p>If the tab's <i>label</i> contains an ampersand, the letter following the ampersand is used as an accelerator for the tab, e.g&#x2e; if the label is &quot;Bro&amp;wse&quot; then Alt+W becomes an accelerator which will move the focus to this tab.</p>
<p>If <i>index</i> is not specified, the tab is simply added. Otherwise it is inserted at the specified position.</p>
<p>If you call insertTab() after show(), the screen will flicker and the user may be confused.</p>
<p>See also <a href="q3tabdialog.html#addTab">addTab</a>().</p>
<h3 class="fn"><a name="insertTab-2"></a>void Q3TabDialog::insertTab ( <a href="qwidget.html">QWidget</a> * <i>child</i>, const <a href="qicon.html">QIcon</a> &amp; <i>iconset</i>, const <a href="qstring.html">QString</a> &amp; <i>label</i>, int <i>index</i> = -1 )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>This version of the function shows the <i>iconset</i> as well as the <i>label</i> on the tab of <i>child</i>.</p>
<h3 class="fn"><a name="isTabEnabled"></a>bool Q3TabDialog::isTabEnabled ( <a href="qwidget.html">QWidget</a> * <i>w</i> ) const</h3>
<p>Returns true if the page <i>w</i> is enabled; otherwise returns false.</p>
<p>See also <a href="q3tabdialog.html#setTabEnabled">setTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::isEnabled</a>().</p>
<h3 class="fn"><a name="removePage"></a>void Q3TabDialog::removePage ( <a href="qwidget.html">QWidget</a> * <i>w</i> )</h3>
<p>Removes page <i>w</i> from this stack of widgets. Does not delete <i>w</i>.</p>
<p>See also <a href="q3tabdialog.html#showPage">showPage</a>() and <a href="qtabwidget-qt3.html#removePage">QTabWidget::removePage</a>().</p>
<h3 class="fn"><a name="selected"></a>void Q3TabDialog::selected ( const <a href="qstring.html">QString</a> &amp; <i>name</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever a tab is selected (raised), including during the first show(). <i>name</i> is the name of the selected tab.</p>
<p>See also <a href="qwidget.html#raise">raise</a>().</p>
<h3 class="fn"><a name="setApplyButton"></a>void Q3TabDialog::setApplyButton ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Adds an Apply button to the dialog. The button's text is set to <i>text</i>.</p>
<p>The Apply button should apply the current settings in the dialog box to the application while keeping the dialog visible.</p>
<p>When Apply is clicked, the <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() signal is emitted.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p>See also <a href="q3tabdialog.html#hasApplyButton">hasApplyButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), and <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>().</p>
<h3 class="fn"><a name="setApplyButton-2"></a>void Q3TabDialog::setApplyButton ()</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Adds an Apply button to the dialog. The button's text is set to a localizable &quot;Apply&quot;.</p>
<h3 class="fn"><a name="setCancelButton"></a>void Q3TabDialog::setCancelButton ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Adds a Cancel button to the dialog. The button's text is set to <i>text</i>.</p>
<p>The cancel button should always return the application to the state it was in before the tab view popped up, or if the user has clicked Apply, back to the state immediately after the last Apply.</p>
<p>When Cancel is clicked, the <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>() signal is emitted. The dialog is closed at the same time.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p>See also <a href="q3tabdialog.html#hasCancelButton">hasCancelButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), and <a href="q3tabdialog.html#cancelButtonPressed">cancelButtonPressed</a>().</p>
<h3 class="fn"><a name="setCancelButton-2"></a>void Q3TabDialog::setCancelButton ()</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Adds a Cancel button to the dialog. The button's text is set to a localizable &quot;Cancel&quot;.</p>
<h3 class="fn"><a name="setDefaultButton"></a>void Q3TabDialog::setDefaultButton ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Adds a Defaults button to the dialog. The button's text is set to <i>text</i>.</p>
<p>The Defaults button should set the dialog (but not the application) back to the application defaults.</p>
<p>When Defaults is clicked, the <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>() signal is emitted.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p>See also <a href="q3tabdialog.html#hasDefaultButton">hasDefaultButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), and <a href="q3tabdialog.html#defaultButtonPressed">defaultButtonPressed</a>().</p>
<h3 class="fn"><a name="setDefaultButton-2"></a>void Q3TabDialog::setDefaultButton ()</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Adds a Defaults button to the dialog. The button's text is set to a localizable &quot;Defaults&quot;.</p>
<h3 class="fn"><a name="setFont"></a>void Q3TabDialog::setFont ( const <a href="qfont.html">QFont</a> &amp; <i>font</i> )</h3>
<p>Sets the font for the tabs to <i>font</i>.</p>
<p>If the widget is visible, the display is updated with the new font immediately. There may be some geometry changes, depending on the size of the old and new fonts.</p>
<h3 class="fn"><a name="setHelpButton"></a>void Q3TabDialog::setHelpButton ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Adds a Help button to the dialog. The button's text is set to <i>text</i>.</p>
<p>When Help is clicked, the <a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>() signal is emitted.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p>See also <a href="q3tabdialog.html#hasHelpButton">hasHelpButton</a>(), <a href="q3tabdialog.html#setApplyButton">setApplyButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), and <a href="q3tabdialog.html#helpButtonPressed">helpButtonPressed</a>().</p>
<h3 class="fn"><a name="setHelpButton-2"></a>void Q3TabDialog::setHelpButton ()</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Adds a Help button to the dialog. The button's text is set to a localizable &quot;Help&quot;.</p>
<h3 class="fn"><a name="setOkButton"></a>void Q3TabDialog::setOkButton ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Adds an OK button to the dialog and sets the button's text to <i>text</i>.</p>
<p>When the OK button is clicked, the <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>() signal is emitted, and the current settings in the dialog box should be applied to the application. The dialog then closes.</p>
<p>If <i>text</i> is an empty string, no button is shown.</p>
<p>See also <a href="q3tabdialog.html#hasOkButton">hasOkButton</a>(), <a href="q3tabdialog.html#setCancelButton">setCancelButton</a>(), <a href="q3tabdialog.html#setDefaultButton">setDefaultButton</a>(), and <a href="q3tabdialog.html#applyButtonPressed">applyButtonPressed</a>().</p>
<h3 class="fn"><a name="setOkButton-2"></a>void Q3TabDialog::setOkButton ()</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Adds an OK button to the dialog. The button's text is set to a localizable &quot;OK&quot;.</p>
<h3 class="fn"><a name="setTabBar"></a>void Q3TabDialog::setTabBar ( <a href="qtabbar.html">QTabBar</a> * <i>tb</i> )&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Replaces the <a href="qtabbar.html">QTabBar</a> heading the dialog by the given tab bar, <i>tb</i>. Note that this must be called <i>before</i> any tabs have been added, or the behavior is undefined.</p>
<p>See also <a href="q3tabdialog.html#tabBar">tabBar</a>().</p>
<h3 class="fn"><a name="setTabEnabled"></a>void Q3TabDialog::setTabEnabled ( <a href="qwidget.html">QWidget</a> * <i>w</i>, bool <i>enable</i> )</h3>
<p>If <i>enable</i> is true the page <i>w</i> is enabled; otherwise <i>w</i> is disabled. The page's tab is redrawn appropriately.</p>
<p><a href="qtabwidget.html">QTabWidget</a> uses <a href="qwidget.html#enabled-prop">QWidget::setEnabled</a>() internally, rather than keeping a separate flag.</p>
<p>Note that even a disabled tab and tab page may be visible. If the page is already visible <a href="qtabwidget.html">QTabWidget</a> will not hide it; if all the pages are disabled <a href="qtabwidget.html">QTabWidget</a> will show one of them.</p>
<p>See also <a href="q3tabdialog.html#isTabEnabled">isTabEnabled</a>() and <a href="qwidget.html#enabled-prop">QWidget::setEnabled</a>().</p>
<h3 class="fn"><a name="showPage"></a>void Q3TabDialog::showPage ( <a href="qwidget.html">QWidget</a> * <i>w</i> )</h3>
<p>Ensures that widget <i>w</i> is shown. This is mainly useful for accelerators.</p>
<p><b>Warning:</b> If used carelessly, this function can easily surprise or confuse the user.</p>
<p>See also <a href="qtabbar-qt3.html#setCurrentTab">QTabBar::setCurrentTab</a>().</p>
<h3 class="fn"><a name="tabBar"></a><a href="qtabbar.html">QTabBar</a> * Q3TabDialog::tabBar () const&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Returns the currently set <a href="qtabbar.html">QTabBar</a>.</p>
<p>See also <a href="q3tabdialog.html#setTabBar">setTabBar</a>().</p>
<h3 class="fn"><a name="tabLabel"></a><a href="qstring.html">QString</a> Q3TabDialog::tabLabel ( <a href="qwidget.html">QWidget</a> * <i>w</i> )</h3>
<p>Returns the text in the tab for page <i>w</i>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
